<%@ include file="/taglibs.jsp"%>

<head>
    <title><fmt:message key="memberDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='memberDetail.heading'/>"/>
</head>

<s:form id="memberForm" action="saveMember" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="member.id"/>
    </li>
    <s:textfield key="member.username" required="false" cssClass="text medium"/>
	<s:textfield key="member.password" required="false" cssClass="text medium"/>
	<s:textfield key="member.confirmPassword" required="false" cssClass="text medium"/>
	<s:textfield key="member.passwordHint" required="false" cssClass="text medium"/>
	<s:textfield key="member.firstName" required="false" cssClass="text medium"/>
	<s:textfield key="member.lastName" required="false" cssClass="text medium"/>
	<s:textfield key="member.email" required="false" cssClass="text medium"/>
	<s:textfield key="member.phoneNumber" required="false" cssClass="text medium"/>
	<s:textfield key="member.website" required="false" cssClass="text medium"/>
	<s:textfield key="member.address.address" required="false" cssClass="text medium"/>
	<s:textfield key="member.address.city" required="false" cssClass="text medium"/>
	<s:textfield key="member.address.province" required="false" cssClass="text medium"/>
	<s:textfield key="member.address.country" required="false" cssClass="text medium"/>
	<s:textfield key="member.address.postalCode" required="false" cssClass="text medium"/>
	<s:textfield key="member.enabled" required="false" cssClass="text medium"/>
	<s:textfield key="member.accountExpired" required="false" cssClass="text medium"/>
	<s:textfield key="member.accountLocked" required="false" cssClass="text medium"/>
	<s:textfield key="member.credentialsExpired" required="false" cssClass="text medium"/>


    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <c:if test="${not empty member.id}">
            <s:submit cssClass="button" method="delete" key="button.delete"
                onclick="return confirmDelete('Member')" theme="simple"/>
        </c:if>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("memberForm"));
</script>